projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d57981
)
a11y: Only care about GtkOrientable::orientation
author
Benjamin Otte
<otte@redhat.com>
Fri, 9 Mar 2012 12:18:52 +0000
(13:18 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 9 Mar 2012 12:23:05 +0000
(13:23 +0100)
There are other widgets (like PanelToplevel) that aren't a GtkOrientable
but still have that property.
gtk/a11y/gtkwidgetaccessible.c
patch
|
blob
|
history
diff --git
a/gtk/a11y/gtkwidgetaccessible.c
b/gtk/a11y/gtkwidgetaccessible.c
index ff317434646f169cbe881ee28372d1b028ce1b9a..c386eb3ef9c63a570bf5c7212488a0fb2b7ddaf3 100644
(file)
--- a/
gtk/a11y/gtkwidgetaccessible.c
+++ b/
gtk/a11y/gtkwidgetaccessible.c
@@
-465,7
+465,8
@@
gtk_widget_accessible_notify_gtk (GObject *obj,
state = ATK_STATE_SENSITIVE;
value = gtk_widget_get_sensitive (widget);
}
- else if (g_strcmp0 (pspec->name, "orientation") == 0)
+ else if (g_strcmp0 (pspec->name, "orientation") == 0 &&
+ GTK_IS_ORIENTABLE (widget))
{
GtkOrientable *orientable;